<!DOCTYPE html>
<html>
<head>
<title>Provider Info Edit</title>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="${staticUrl}static/script/jquery-1.8.2.min.js" ></script>
<link href="${staticUrl}static/styles/global.css" rel="stylesheet" type="text/css">
<style type="text/css">
</style>
<script>
var autoOffSale = function(obj){
var $obj = $(obj);
$("input[name='offsale']").val($obj.text());
}
</script>
</head>
<body>
<div class="h">${params.errorMsg!}</div>
<div class="config-box">
<form action="${requestUrl}provider/provider-edit.htm" method="POST" autocomplete="off">
<input type="hidden" name="reqType" value="${(params.reqType)!''}" />
<input type="hidden" name="id" value="${(params.id)!''}" />
<table width="95%" class="config-table">
<tr>
	<th width="120">*名称：</th>
	<td><input type="text" name="name" value="${(params.name)!}" /></td>
</tr>
<tr>
	<th>*地址：</th>
	<td><input type="text" name="address" value="${(params.address)!}" /></td>
</tr>
<tr>
	<th>*旺旺：</th>
	<td><input type="text" name="wangwang" value="${(params.wangwang)!}" /></td>
</tr>
<tr>
	<th>*TAOBAO店URL：</th>
	<td><input type="text" name="taobaoHomeUrl" value="${(params.taobaoHomeUrl)!}" /></td>
</tr>
<tr>
	<th>*旺铺类型：</th>
	<td>
	<select name="storeType">
	<option value="0" ${(!params.storeType?? || params.storeType==0)?string('selected="selected"','')}>201x</option>
	<option value="1" ${(params.storeType?? && params.storeType==1)?string('selected="selected"','')}>2012</option>
	</select>
</td>
</tr>
<tr>
	<th>*拿货优惠：</th>
	<td><input type="text" name="offsale" value="${(params.offsale)!}" />
	<span class="ml10">例如：
	"<a class="pl5 pr5" href="javascript:void(0);" onclick="autoOffSale(this);">-10</a>"、
	"<a class="pl5 pr5"  href="javascript:void(0);" onclick="autoOffSale(this);">-15</a>"、
	"<a class="pl5 pr5"  href="javascript:void(0);" onclick="autoOffSale(this);">-20</a>"、
	"<a class="pl5 pr5"  href="javascript:void(0);" onclick="autoOffSale(this);">-30</a>"、
	"<a class="pl5 pr5"  href="javascript:void(0);" onclick="autoOffSale(this);">-50%</a>"
	</span></td>
</tr>
<tr>
	<th>*城市：</th>
	<td>
	<select name="areaId">
		<#if cityAreaList??>
		<#list cityAreaList as area>
		<option value="${area.id}" ${(area.id==2)?string('selected="selected"','')}>${area.cityAreaType.order}-${area.cityAreaType.display}--${area.name}</option>
		</#list>
		</#if>
		</select>
	</td>
</tr>
<tr>
	<th>姓名：</th>
	<td><input type="text" name="contactName" value="${(params.contactName)!}" /></td>
</tr>
<tr>
	<th>电话：</th>
	<td><input type="text" name="phone" value="${(params.phone)!}" /></td>
</tr>
<tr>
	<th>手机：</th>
	<td><input type="text" name="mobile" value="${(params.mobile)!}" /></td>
</tr>
<tr>
	<th>QQ：</th>
	<td><input type="text" name="qq" value="${(params.qq)!}" /></td>
</tr>
<tr>
	<th>状态：</th>
	<td>
	<select name="status">
	<option value="0" ${(!params.status?? || params.status==0)?string('selected="selected"','')}>生效</option>
	<option value="1" ${(params.status?? && params.status==1)?string('selected="selected"','')}>失效</option>
	</select>
	</td>
</tr>
<tr>
	<th></th>
	<td><button type="submit">提交</button></td>
</tr>
</table>
</form>
</div>

</body>
</html>